import Vue from 'vue'
import store from '@/store/index'

Vue.directive("has",{
    inserted(el,dir){
        let btnPermission = store.state.userStore.btnPermission
        if(dir.value){
            if(!btnPermission.includes(dir.value)){
                el.parentNode.removeChild(el)
            }
        }
    }
})